<?php
class CommonAction extends Action {
	function _initialize()
	{
		$this->checkAdmin();
	}
	
	function checkAdmin()
	{
		if($user_id=getUserId()){
			define(UID, $user_id);
		}else{
			$this->assign('jumpUrl',U("/Login/login"));
			$this->error("未登录！");
		}
	}
}
